﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using Wicresoft.ARConnector;
using Wicresoft.Entity.Reconciliation;

namespace Wicresoft.Reconciliation.DAL
{
    public class CIVerifyResultBatchDBOperate
    {
        private static readonly string ARServer = ConfigurationManager.AppSettings["ARServer"];
        private static readonly string ARUid = ConfigurationManager.AppSettings["ARUid"];
        private static readonly string ARPwd = ConfigurationManager.AppSettings["ARPwd"];

        private ARProxy<CIVerifyResultBatch> cIVerifyResultBatchARProxy;

        public void SaveCIVerifyResultBatch(CIVerifyResultBatch vrb)
        {
            cIVerifyResultBatchARProxy = new ARProxy<CIVerifyResultBatch>(ARUid, ARPwd, ARServer, string.Empty);
            CIVerifyResultBatch cIVerifyResultBatch = new CIVerifyResultBatch
            {
                BatchNumber=vrb.BatchNumber
            };
            cIVerifyResultBatchARProxy.CreateEntry(cIVerifyResultBatch);
        }
    }
}
